export default payload => {
	payload.e.list.forEach(attr => {
		var target = ''
		if(attr.targets){
			target = attr.targets
		}else if(attr.target){
			target = [].concat(attr.target)
		}
		target.forEach(tar=>{
			var chainArr = tar.split('%krt_'),parentCid,targetCid;
			if(chainArr.length > 1){
				parentCid = chainArr.slice(-2,-1)[0].split('%krt%')[1]
			}else{
				parentCid = 'page'
			}
			targetCid = tar.split('%krt%').slice(-1)[0]
			if(!parentCid || !targetCid){
				return
			}
			uni.$emit('attr-'+payload.pageCid+'-'+parentCid,{
				attr, targetCid
			})
		})
	})
}
